package com.hxzy.shop.dto.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author ht
 * @Date 2021/7/9 11:43
 * @Version 1.0
 */
@Data
public class DrugResp implements Serializable {


        private static final long serialVersionUID = 1L;

        /**
         * 药品id
         */
        @ApiModelProperty(value = "药品id")
        private Long drugId;

        /**
         * 品类管理id
         */
        @ApiModelProperty(value = "品类管理id")
        private String categoryManagementId;

        /**
         * 药品编码
         */
        @ApiModelProperty(value = "药品编码")
        private String drugCode;

        /**
         * 条形码
         */
        @ApiModelProperty(value = "条形码")
        private String barCode;

        /**
         * 药品名称
         */
        @ApiModelProperty(value = "药品名称")
        private String drugName;

        /**
         * 列表图
         */
        @ApiModelProperty(value = "列表图")
        private String tabularChart;


        /**
         * 规格
         */
        @ApiModelProperty(value = "规格")
        private String specifications;

        /**
         * 单位
         */
        @ApiModelProperty(value = "单位")
        private String company;

        /**
         * 剂型
         */
        @ApiModelProperty(value = "剂型")
        private String dosageForm;

        /**
         * 生产厂家
         */
        @ApiModelProperty(value = "生产厂家")
        private String manufacturer;

        /**
         * 批准文号
         */
        @ApiModelProperty(value = "批准文号")
        private String approvalNumber;

        /**
         * 是否处方药 true是 false不是
         */
        @ApiModelProperty(value = "是否处方药 true是 false不是")
        private Boolean prescriptionDrug;

        /**
         * 库存
         */
        @ApiModelProperty(value = "库存")
        private Integer stock;

        /**
         * 库存预警
         */
        @ApiModelProperty(value = "库存预警")
        private Integer inventoryWarning;

        /**
         * 成本价
         */
        @ApiModelProperty(value = "成本价")
        private BigDecimal costPrice;

        /**
         * 统一零售价
         */
        @ApiModelProperty(value = "统一零售价")
        private BigDecimal uniformRetailPrice;

        /**
         * 详细说明
         */
        @ApiModelProperty(value = "详细说明")
        private String detailedDescription;

        /**
         * 上架状态 true上架 false 下架
         */
        @ApiModelProperty(value = "上架状态 true上架 false 下架")
        private Boolean state;

        /**
         * 创建时间
         */
        @ApiModelProperty(value = "创建时间")
        @JsonSerialize(using = DateSerializer.class)
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "更新时间")
        private Date updateTime;

        @ApiModelProperty(value = "药品分类名称")
        private String classificationName;

        @ApiModelProperty(value = "是否删除")
        private Boolean isDelete;

        /**
         * 折扣价
         */

        @ApiModelProperty(value = "折扣价")
        private BigDecimal discountPrice;


        /**
         * 秒杀价
         */
        @ApiModelProperty(value = "秒杀价")
        private BigDecimal priceSpike;


        @ApiModelProperty(value = "是否为感冒药 0->不是感冒药 1->是感冒眼")
        private Integer coldMedicine;

        /**
         * 库存
         */
        @ApiModelProperty(value = "秒杀库存")
        private Integer limitStock;


        @ApiModelProperty(value = "赠送件数")
        private Integer numberOfGifts;


        @ApiModelProperty(value = "活动价格")
        private BigDecimal activityPrice;



        @ApiModelProperty(value = "起步数量")
        private Integer baseLimit;


        @ApiModelProperty(value ="打包数量")
        private Integer packNum;



}
